import fetch from '@/utils/fetch';

export function getInfo(token) {
  return fetch({
    url: '/api/admin/user/info',
    method: 'get',
    params: { token }
  });
}

export function putLocal(local) {
  return fetch({
    url: '/api/admin/user/local',
    method: 'put',
    data: {local: local}
  })
}
